#ifndef BINOMIALNODE_H
#define BINOMIALNODE_H

#include "node.h"

class BinomialNode : public Node
{
private:

    int pNode;
    int nNode;

    virtual bool inRange(double v);

public:

    BinomialNode(double val);
    BinomialNode(QString label, double val, double sd, Node * pNode, Node * nNode, bool isObserved = false);

    void setPNode(Node * node);
    void setNNode(Node * node);

    virtual double computeLogLikelihood();
};

#endif // BINOMIALNODE_H
